STEP 7: Let's give the variable a new value each time the loop runs.

  • In LOGIC, select . Drag Add to a variable into the bottom of your loop.
  • Change the variable name to x.
  • Run your program to see your new list of points.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)